package com.tang.qzzp.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Jsoup定时爬取资源
 *
 * @author 唐海清
 */

@Component
@Slf4j(topic = "JsoupTask")
public class JsoupTask {

    /**
     * 每天凌晨1点执行
     *
     * @return boolean
     */
    @Scheduled(cron = "0 0 1 * * ?")
    public boolean parseTextFromBaidu() {
        log.info("start ......");
        return true;
    }
}
